﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ingineria_prog
{
    class CoupeFactory:AbstractCarFactory
    {
       static private AbstractCarFactory myobj = null;
        private CoupeFactory() { }

       static public AbstractCarFactory getCoupeFactory()
        {

            if (myobj == null)
                myobj = new CoupeFactory();

            return myobj;
        }

       public Car getCoupe()
       {
           Car c1 = new Coupe();
           return c1;
       }
    }
}
